<?php
declare(strict_types=1);

namespace SixShop\Payment\Contracts;

class PaymentResponse implements \JsonSerializable
{
    public function __construct(public string $orderNo, public string $type, public array $raw)
    {
    }

    public function jsonSerialize(): array
    {
        return [
            'order_no' => $this->orderNo,
            'type' => $this->type,
            'raw' => $this->raw,
        ];
    }
}